import { DISTANCE_INVERSE } from '../../../audio/constants.js';

class AudioSourceComponentData {
    constructor() {
        // serialized
        this.enabled = true;
        this.assets = [];
        this.activate = true;
        this.volume = 1;
        this.pitch = 1;
        this.loop = false;
        this['3d'] = true;

        this.minDistance = 1;
        this.maxDistance = 10000;
        this.rollOffFactor = 1;
        this.distanceModel = DISTANCE_INVERSE;

        // not serialized
        this.paused = true;

        this.sources = {};
        this.currentSource = null;
        this.channel = null;
    }
}

export { AudioSourceComponentData };
